//
// Created by Administrator on 2025/11/7.
//
//
// Created by henry on 2025/11/7.
//
#include "student/menu.h"
#include "student/order.h"
//前端入口
int menu_entry(){
    printf("欢迎进入前端系统!\n");
    menu_list();
}

//前端菜单
int menu_list(){
    while (1) {
        printf("1.查看菜单 2.选择菜品 3.查看订单 4.返回上级\n");
        int choose;
        scanf("%d",&choose);
        switch (choose) {
            case 1:
                menu_query();
                break;

            case 2:
                start_order_process();
                break;
            case 3:
                view_history_order();
                break;
            case 4:
                printf("返回上级菜单...\n");
                return 0;

            default:
                break;
        }
    }
}